//
//  SISSHouseManualModel.m
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/11.
//  Copyright © 2019 优房网. All rights reserved.
//

#import "SISSHouseManualModel.h"

@implementation SISSHouseManualModel

// 返回一个 Dict，将 Model 属性名对映射到 JSON 的 Key。
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"ID": @"id"};
}


- (void)setManual:(NSArray *)manual {
    NSMutableArray *tempArr = [NSMutableArray arrayWithCapacity:manual.count];
    for (NSInteger i = 0; i < manual.count; i++) {
        [tempArr addObject:[NSString stringWithFormat:@"%@%@",BASE_IMAGE_URL,manual[i]]];
    }
    _manual = tempArr.copy;
}

- (void)setHouse:(NSArray *)house {
    NSMutableArray *tempArr = [NSMutableArray arrayWithCapacity:house.count];
    for (NSInteger i = 0; i < house.count; i++) {
        [tempArr addObject:[NSString stringWithFormat:@"%@%@",BASE_IMAGE_URL,house[i]]];
    }
    _house = tempArr.copy;
}


@end
